added functionality to the two scan buttons in entry activity