Refactored saving and event handlers
Removed Ajax call for custom lead/tail
Markup work
Divide by zero protection
Fixed price calculation
Refactor to remove outdated functions
Obsolete file cleanup