Added: Compare button check function