split renderView into two functions so we can check for view existence separately