added blog functionality and refactored some views.