Removed unnecessary function from the controller, thx @gergely-ujvari for the hint