finish basic draft functions both at web ui and server side