updating. separting server and frontend