Refactoring several methods

Refactor get_colmodel method and mark_col_as_editable,
mark_col_with_search and mark_col_with_value