working on viewer renderization