fixed index to not have buttons on the right unless logged in