cleans up layout, removes instance flash