added flange gui to script