prev next for preview working