had to refactor everything into controllers and views, directives are screwy as shit in this patch