Refactor footer sticky bar and header sticky bar.