app currently broken but working on custom directive