modified blog controller so that it lives entirely in its own file