1. bug fixed on floating notify showed unexpectedly.

2. cleaned code