moved function based view to secondary view file