improve code, add dynamic icons to flashable