remove useless codes and change the effect of nav bar