view now uses template for showing POST data
refactored row checking in it's own method instead of copying it multiple times