Add select all objects function