moved  status msg code to status js file