updated markup and styles for item flags