Update the script for navbar