fixed issue with modal dismiss
added new layout for new record submit