Added error handeler and error custom control and error interface