solving problem with resume button