adding enter/leave view listener for devices