updating page buttons and server connection