Finished main functionalities of the app