add parking manager and refactor codes