Moved Main page to the externel template and was successfull in passing data in template