added prototypes of new structure of UI code (this commit is only to not lose these changes while creating a new branch)