Remove unnecessary extra ajax requests