added javascript to have a message show up