Refactor index.erb and begin implementing checkbox integration