Fixed error with getting an open display, refresh button now works