adding rails panel and better errors