add input output port visibility function