refactor list view to take list or post
fixed validitation which fixed fn tests