Part way through refactoring to use event rather than binding to rootscope