convert main dashboard module to coffeescript