created method setter for next and previous listener events