Refactor code on controller, move buy_5 back to buy controller