I want my template to be displayed only when I press the button and the views.detail_view function works