Moving the recent queries menu to a jquery ui menu