cleans up layout