introduce product adding function, modify view templates