Working on purchase Controller