Added the ui and server logic of the app