updated code to add status form