added puchases controller