view code fixes