added logic in actions method in submissions