removing global variable view