combine views and other logic