Fixed bug with next/previous day buttons in preview page