Fixed small bugs in io_handler and created an action menu
Menus can now have multiple pages