added constants for views
added event channel for go procs communication
removed unnecessary arithmetic