remade menu, fixed bugs and devicd compatibility