performatic changes

Some performatic changes were made, like avoiding heavy DOM requests for each iteration on services object.