fixed posts to show only by the user_id, added main index