added cancel button when loading file