add icons in manifest and refine code