set visibility according to app environment ( web or node)