command 'next' and 'previous' added