changed delete section redirect to the referer url or to the first section url, in case of deleting the current section from its page