Introduce tabs to modal window and date tab function