bug fixes for invdetails

check if the layout exists, if not send a msg
tempmod hsa a | delimiter instead of ,