Fixed UI bugs when resizing window
Cleaned up files