#3 A very little bit of refactoring. Also there's been a bug: The user panel needs to be initialized again after the cookie has been applied.