Created modal directive, and it pops up when a calendar time range is selected