Added all the functionalities for the app