Update main path for component