I was able to figure out the problem. There were 2 plugins that supposedly help configure the website. These two plugins were preventing uploading and modifying header and footer options. And they were throwing error messages. Once i disabled them WP came back to normal. So all good. thanks