add center and zoom when click