accepting filepath from ui for create and editing file path on edit of page