implemented input for detail page