implemented structure and flow for UI UX