How to add interactions to custom objects?