add ajax promise and loading route