Update controller logic for 'next' button