changed buttons into inputs