Update UIfunctions.py

updated to use relative directory to find cards rather than explicit