add whitelist array to params
whitelist class params and in template