added pan gesture recogniser to the navigation bar