add prev/next focus functions

Solves Issue #5.