some refactoring in xtop_view, comments