When resetting page, reset onlick handlers too