detect true or false by icon pressed