Refactor: put the functionality of the 3 buttons actions into 1 single Async Task class.