fixed object count on collections.php and added redirect