before changing to vertical layout