Logout button action added into template