some bugs that need to be fixed with jquery