Took out alert to see if that makes it not call createNav