added de-registering. also changed some html and css