switch display order of prev/next buttons
fix issues with prev/next buttons when invalid selection (e.g. input box empty)
minor tweak to seq_sane