added events for master detail view
need to complete views
need to handle add/update/delete