fix bug when there are no form submissions
modifications based of sheel/matt feedback