resume button works properly