adding fixes for template views on joomla 3.0