Made the app functional