deleted timer
added functionailty to pagination

added functionailty so user can close pagination by clicking documewnt