corrected the binding (post link) so as to pass scope variables in the directive