Changed to angular. Now loads agent list and changes present/not on click.