template get data from controller not view