Adding observer for when button is pressed