added views support

Signed-off-by: Sebastiano Mariani <seba0691@gmail.com>