view functions cleanup
Client side code going on