changed legend to just h1
improved ui