Fixed passing of ids in event handlers. Added title attributes.