creating action function to interface.py