Fixed leaking fragments

several other improvements to speed up UI.