Layer script is responsible for events subscribing