Check if the  is a valid viewtype

Signed-off-by: Luciano Lima <lucianomlima@ymail.com>
updated the changes file based on development so far