fixing play/pause and adding a delay before displaying the menu