fixed header footer bug and changed panel transition