fixing account types and periods editing