Change time crud to ajax