removed extra code that was commented out from modal view and controller