JS fix

Dialog fix
Update with views