tried addressing looping issues using isplaying() and stop()