replaced empty url with #
used constant variables, replaces magic values