Fixed smarty and started with the main page