Add basicAdapter and optimize code
ob_start in template
Dispatcher begins