refactor blog view