fixed the arrows and navbar functionality