Model view controller and ui work