added precompile to edit action and updated the upload picture feature