Implemented index and create action