refactor frontend a little
Merge pull request #67 from otiai10/develop

refactor frontend a little