fixed javascript issues for the side content