Solved problems with auto layout