Fixed popup menu

Menu appears only on right click and if the click was made inside table
area.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>