moved button 'show' out of the user is logged in context