support view to show context menu
add weight sum support