moved get_url function into action.py