Added functionality for new path button