refactored 'btn-click' to affect alerts not buttons