clean up, fix auto-flash and new design for device informations