adding controller

wrapping entire application into a clojure — function for the var and adding controller to get data on the page