code cleanup, bug fix in theme lookup in controller extension, added delay to dynamic grid load