added error messages, improved show page