Added ajax functions for schedule manager.
Added few lines to check schedule existence.