got rid of actions i do not need in spaces_controller for now
added index for spaces just to show pictures and uncommented this action in the controller: