fix main page links while logged in