change type of views