tidy up itemsviewcontroller

reorganised methods.
change gitignore