Added some refactoring to differentiate between GUI vs Console View

Added methods to send all users and all chatrooms to the GUI to be displayed.