Delete and improve some code related to the ui
Update the license at the top of the files