2
I found reason, in footer.php there is:
//serve page
$GLOBALS['xTheme']->display($template);
If I remove this, only form loads but it' not working, if I leave this, then my whole page loads but everything works. So can anybody explain how to remove this?