UI improvements. Handle request_perms event. Performance improvements.