borrowed some menu code because mine was shit