fixing double click issue with navbar