added angular and first controller into the logic.