changed sales view and template