Added check/uncheck all and refactored stuff.