removed type from post and added ajax callbacks to the asset form