now using delegate approach instead of notifications for dismissal; added comments for custom segue