Fixing buttons on the edit page, and a bug in authorizedUser