fixed checkbox problem, deleted some code