fix edit views, add environment vars