Edit functionality for admin chunk
Slightly better error handling
Fixed error messages