changes usage of constant to static member and adds usage in detail view, untestet