fixed some bugs, still need to fix membership page