setting,cancel button implemented