Added error handling, so dynamic screen layout can be used while its development continues