fixed the bug of color column (moved the controller) and set the
column
cleaned up Service,changed writeSessionState param handling
added headings
fixed the bug for keyType according to new queryObject format