use event instead of timeout for gist button