implement document selector view, rename main view
remove unused class
remove unused code