add edit links after login, remove after logout