Event listeners and registering update