Prettier refresh button, bug and crash fixes