logging added in onClick