Removed if not $thread condition in index.php view to avoid confusion