Handling toolbox events (doesn't work for now)