modified ur.R and server.R files