fixing bugs in menu