added use of basename when prepopulating file name on open