calendar functionality modified