refactor getribbontext and getribbonimage into controller