added <ref> to v.s. entries
fixed next and prev buttons in the editor