Modified list.php into view_list.php , broken it into multiple files for easyer understanding.