created helper function for creating initial svg element