added init on befor paging is added