control orientation for a view