input add button behaviour