added file choosing