Minor Changes, fixed firefox alerts and errors