Rewrote default view.tpl for better handling