refuctoring header.php in purpose use message and error boxes for displaying ajax messages