updating edit, upload buttons