modify directoris and program frame