Stage change ajax implementation, remove unnecessary code