init posts and navigation