refactored common svg elements into groups