added feature that removed the buttons when logged in