fix for configuration changes due to orientation