bug fix and blockui impl