Manually handling the orientation behavior