fix issue with range canvas not being defined, add ugly/pretty label support