cleans obsolete xml, ui code, imports