Implemented write methods and added dummy methods to buttons.