refactored load master and detail view controllers