added support for display class and added logout to lobby