fixed some stuff in view