My Problem: how can i open a popup on click

You cannot open pop-ups with basic home assistant. This can only be done with browser-mod which is a custom integration.

Also, please take time to learn how to properly format code. See step 11 in the FAQ.