broke up setupFirstPage() into several private methods
fixed pushing in putRemoteFile
fixed pushing in putRemoteFile