added view, server logic