implemented first version of small view