testing separating event hash functions for modularity
update namespaces and move logic out of main.js
create contollers for tabs