fix settings github url click no response, and clear up some code.