write the interface of touch layer