added dayClick functionality