cleaned up frontend and backend api