add a log
fix some ui bugs