added generic error handling (still needs some improving), also added a dummy import page