fix coding style.
check basic contest information is complete and not duplicated.
explicitly define isVisible is true/false.
remove unused imports.