making navbar functional