auto layout add some codes