Initial code
Simplified the view building process