set #home for logout and add pause event