added some stuff to apply view