trying to use compile in navbar