added view stuff to global file