day generation and view