fixiing Logic for prompting about filepath change