fix several bugs, add material page