unbinding event handlers before binding new ones