Converted to react for views
Added support for location hashes