apply auto layout