Moved views to a separate file.

Initial handler function for task-input submissions.