added button for sending data, saving rating state