created class for checkboxes, reduced size of makeFirstpage method