added server.r and ui.r files