Helper method files, refactored views

created helper methods, refactroed client/views.py to use methods.