Fix: agit#reload causes an error when window layout changed
Implement auto reload feature