add pauze & resume functionality