adds dashboard funcationality

extracts posts and comments into partials