Removed Mode from the classes and used a simplier layout manager to work with the gui