fixed bug with deletting in menu js