Made Ajax work after implementing customFx