added task to handle button press events