Sorted out the unresponsive GUI

Still has a little erratic behaviour at times.