dynamic ajax instead of remotefunc for header