cleaned up CGI module and added checkbox selection support in Web