Added listener and interceptor to avoid unautorized access.