Sorry, somehow i missed followups to this topic. I have done it like this:
$page->run($action);
?>
<meta http-equiv="refresh" content="0; URL=/../../index.php">
$page->run($action);
?>
<meta http-equiv="refresh" content="0; URL=/../../index.php">
in ucp.php (in italic my addition to the file