simpler way to handle paths in the UI