Added updating endpoints, and frontend functionality