how did you sus this out? I am looking to add a simular feature