added a menu.php file and fixed some bugs, still need to debug problems
on server