added function for real parent view controller (no navigation controller)