Handling screen changes.