added post update functionality