changed readme, extracted validity check methods from view and delete