Add angualjs code and modify manage controller