Fix refresh page bug
Starts refactoring clients controller js