added file save in inbox_controller