cleaned up code, still buggy Next/Puase button