addition to last commit (enable/disable revert button)

Signed-off-by: anti-freak <antifreak2011@gmail.com>