fixed typos and improved updateStatus function

updateStatus function now accepts URL as argument