using rootscope emit to dismiss a controller