Bug fixing on displaying date and add active element on navbar