made markdown parser a helper method and moved call to views