added in factory object for inboxEmail and filled out the controller