pause correct hide, refactor