Add toggle playlist middleware