fix button and add network detect for all page