improve width calculations
Add proper handlers for showing track metadata