refactored pay and receive controllers to be contained within a main controller