almost finished portrait orientation rules