try to clean up outline page lifecycle
release a reference from find query
fix npe + other minor changes