implement directive

not working yet. any ideas?
progress on forms