add in ajax view ouputting, updates to css and html
merging in pagination code