add function around default view