Added eventListener and buttons for previous actions