fix the bug in form; date, add success message
add transaction api
Improve index html

- separate the style into homepage.css
- change the loading message with .gif
fix minor bug, and change button

- fix bug on firefox when refreshing
- change the x-button to - -button for removing the time