update prev/next function samter

1. for month view jump prev/next year
2. for other views jump prev/next month
useful in cases where user not allowed to view all three views
tested with html file nav_months.html