Some fixes and features

Fixed nanoUI and added purge and secure functionality