Ensured that click event is trigger after spinner class is added