Change gnFormController to a directive