added timesperweek and fixed cancel bug in modal