code cleanup - duplicate call to getState/getDisplayState