links now properly work on reload