added modal calendar functionality