added template code for ui and server