Handle submenu and add refresh page