refactored the icon and the template windows app class