added getContextMenuInfo method to handle floating context menu