defive global variable for used in all view