error and main views