modded draw functions to include title attribute