bug fixed for resetting item to unselected after submit