removing ajax on type loading takes time