removed var_dump in segmented router
use Closure in service_containter.php
separated general abstraction from segmented router
application->has()
data access in viewas separate trait