corrected so that there will be buttons on main page when signed in