Implemented index/new/create actions.