Refactored percentage button detection logic with android tag