loadingOnAJAX and disabling navigation on edit