using websockets to show alert when adding a photo