replaced all url_for calls with static_file calls