Fixed contextual menu flip when page is loaded in ajax