Menu fix

fixed bug that closes menu automatically