fixes history and approve button spamming