change menu on frame opening