set params before creating the view so it is available on onrender