adding close button to toggle between playlist mode and normal mode