moved methods to addcolumncontextmenu to make it reusable