move code for button, now only displayed if right user is logged in