calandar in place but modal not working