implemented rest of UI functionalities