add decorator to limit year and month
display flashed messages