I'd stick the cords/tubes to the tank, I agree that if you stick them to the lid they'll have to keep on moving every time you move the lid and maybe get stressed. Also you might need to allow some slack into the cords to allow the lid to move enough.