use ngDialog to open post