Some refactoring for button states, also example of file-input
0.5.0