Changed code to display the current active page in navbar and also changed the effect of modal.