added services environments editor to add, modify and remove env variables
partial handling memory leaks