split modal and loading spinner, create newday.js