Added resize function to DController if needed