Started reconnecting front-end and beck-end, fixed identation issue in Purchase controller