fix preview link builder

Fixed the preview link builder on repos/new
added test coverage to the new js
cleaned up the repos/new submit repo form styles