Completed buttons functionality in the sorting page but the currentEmail isnt updating.