tidy and added filter for file dialog