updated blogController and moved Blog to BlogViewModel