small improvements for sortening and views