support for prev or next diary