added isLocalRequest middleware
added updateSpaceStatus
refactored the send notification method
added missing return statement if existing user was found
implemented change space status handler