Event listeners placed correctly