fix date overlapping and add ajax loader to ajax form