added error and layout views