Made base template behave like Kohana