clean the ui and code