fixed some logic with whos logged in and buttons