Clean files and refresh layouts on re-opening project