minimizing code, added form focus effects