Added previous and next buttons. Updating spell also updates the mapping.