fixed resume and pasue button bug