add template server and ui R files