configure razor instance after creation