reverted to correct auto layout implementation