update orientation and permissions