Improvements to auto-complete  and changes create in application controller. Also added jquery-ui and bootstrap requires to main.
Index gets a hidden input and javascript for autocomplete to index.