fix params checking issue

1. fix params checking issue. fixing #6
2. fix revoke button position issue #5
3. add revoke function
rafactoring thin controller