added css and legend