Added directory display handling and cleanup after send