update for auto layout