kind of fixed opening menu problem, still needs work