updated ui and server.r files