working posts controller on the home page and properly styled