added charlie’s code and turned off the ability to slide once hitting the log off page