add resize support
add popup menu