working changing view and template