Refactored leads controller and view