added error layout