finished Ui.R interface;