fixed height issue
added a getURL function