adding setting button and update UI