moved modal to partial file and removed have_date_range function