rendering views and outputting data