Cleaned Modify selection button code.