adjusted svg layout and attributes