globalize last_click

* kept hitting nonetype error, will debug after this