remove all the ui into a smart package