added button and LED functionality