Fixes the delete bug about 'requering already closed cursor'. Adds context menu on long touch