Add drag and drop functions for file openning