using scope methods within a directive. Separating concerns between the scope and the directive