split up notes controller and notes model
fixed merge confglicts