posts controller
some changes to dashboard and posts controller