changed the structure of UI flow, comments(for UI elements) are now obsolete: to be updated soon