refactored dispatching static pages
refactored get all_list function