added percentage placement of dismiss button and error message