fixing issue with opening url